package core.wm;

/*Author: John Archer, Contact: john.archer.jpa@gmail.com*/
public class Scoring {

    public double m,ix,iy;
    public boolean mMode,ixMode,iyMode;

    public Scoring() {
        m = 0.00;
        ix = 0.00;
        iy = 0.00;
    }

    public Scoring(double m, double ix, double iy) {
        this.m = m;
        this.ix = ix;
        this.iy = iy;
    }

    //on mode is the one with max score
    //if M_score then A
    //if Ix_score then B
    //if Iy_score then C
    public void set(boolean m, boolean ix, boolean iy) {
        mMode = m;
        ixMode = ix;
        iyMode = iy;
    }

    public double getVal() {
        if (mMode) {return m;}
        else if (ixMode) {return ix;}
        else if (iyMode) {return iy;}
        return 0.00;
    }
}
